//
//  NEDViewController.m
//  NEDCategory
//
//  Created by 林宁宁 on 12/02/2021.
//  Copyright (c) 2021 林宁宁. All rights reserved.
//

#import "NEDViewController.h"
#import "NSObject+NEDDealloc.h"

@interface NEDViewController ()

@end

@implementation NEDViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    
    [self testDealloc];
}

- (void)testDealloc{
    
    NSArray * list = @[@"1"];
    
    [list ned_deallocBlock:^(Class  _Nullable __unsafe_unretained cname) {
        NSLog(@"释放了%@", NSStringFromClass(cname));
    }];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
